/*
用户传入:
routes: [
  {
    path: "/home",
    component: Home,
    children: [
      {
        path: "/home/haha",
        component: haha,
      },
    ],
  },
  {
    path: "/about",
    component: About,
  },
];

*/

/*
转换之后的mapRoutes:
route = {
    "/home":{
        component:Home,
        children:{
            "/home/haha":{
                component:haha
            }
        }
    },
    "/about":{
        component:About
    }
}
route['/home']
*/
